package simpleFactory;

/**
 * 设计模式:简单工厂模式 -- 创建型模式
 */
public class TestMethod {
    public static void main(String[] args) throws Exception {
        double numberA = 50;
        double numberB = 25;
        Operation ope = OperationFactory.createOperation("+");
        double result = ope.getResult(numberA,numberB);
        System.out.println(result);
    }
}
